Skip to content

docs(id): resolve the CLI-1..CLI-14 survey disagreements (#13363) - #13641

Merged
dezren39 merged 1 commit into
mainfrom
lane-oc6-13363
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-oc6-13363

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Resolves the fourteen ID book survey disagreements in #13363 (CLI group). Every item was verified first-hand against current main before editing; the wrong side was fixed in each case, and the book chapters that recorded the disagreements are updated in the same change (DOC-01).

Fixed in the README — CLI-1 (list loses the ls alias the parser does not have), CLI-2 (Cargo quick start: the default build already has no web UI; --no-default-features also removes sandbox/world), CLI-7 (REPL example no longer uses the nonexistent | pipe-to-shell; uses ! escape and |> pipe-in), CLI-8 (find example no longer claims glob patterns; substring query).

Fixed in help text / doc comments at the source — CLI-5 (serve.rs module doc: .iroh-serve.lock, matching the constant), CLI-6 (serve/peers --topic help: the constants are the fallback, defaults.json is the operative default), CLI-9 (top-level group help no longer lists join; the stub's own help already states the truth), CLI-14 (put --content summary line now states the exactly-one-name requirement).

Fixed in code — CLI-10: feature gating is consistent now. match-audit and the sandbox world commands (dev, measure, replay, verify) parse in every build and fail at dispatch with this build has no sandbox support (exit 1) — the pattern world already used — instead of being gated out of the parser (exit 2). CLI-11: clap --format help and REPL help each name the other's default (tag vs union); REPL help lists --format. CLI-12: the REPL startup banner lists the full command set.

Already fixed / verified, no change — CLI-3 (walk entered the README table in #12772), CLI-13 (README Project Structure already matches the split crate tree; rewritten with #13365 — verified crate-by-crate), CLI-4 (source already rejects serve --replace-defaults, pinned by an existing test, spells defaults.json, and has walk; the divergence lives in previously built binaries and the book already documents it and how to detect it).

Tests — two new pins in cli/tests.rs: id ls is rejected; match-audit parses.

Verification (laptop worktree, nix develop in pkgs/id, sccache disabled per #13367):

  • cargo test -p id-cli --lib cli::tests — 144 passed, 0 failed.
  • cargo check exit 0 for: id-cli no-default-features, id-cli world-only, id no-default-features, id default features, plus a final incremental id-cli check on the committed tree.
  • Runtime oracles on purpose-built binaries: no-features id match-audit verify → Error: this build has no sandbox support, exit 1 (was exit 2); id match-audit --help exit 0; world-only id world measure --module … → same sandbox error, exit 1; id ls → unrecognized subcommand with the list tip, exit 2.
  • mdbook build exit 0; the only warning is the pre-existing unclosed <error> tag in reference/cli-worlds-admin.md, a file this change does not touch.
  • Grep oracles for every stale claim; rustfmt shows no new drift in any edited file; git diff --check clean.

Closes #13363


Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Every item verified first-hand against current main; the wrong side
was fixed in each case:

- CLI-1 (README): the command table no longer gives top-level
  `list` an `ls` alias the parser does not have; a parse test pins
  that `id ls` is rejected.
- CLI-2 (README): the Cargo quick start no longer presents
  --no-default-features as the library-only build; the default
  build already has no web UI, and the flag also removes
  sandbox and world.
- CLI-3: already fixed - `walk` is in the README table (#12772).
- CLI-4: verified, no in-repo fix - the source already rejects
  serve --replace-defaults (pinned by test), spells the defaults
  file defaults.json, and has walk; the divergence is in
  previously built binaries, which the book documents.
- CLI-5 (serve.rs module doc): lock file spelled .iroh-serve.lock,
  matching the SERVE_LOCK constant.
- CLI-6 (serve/peers --topic help): the hardcoded constants are
  now described as the fallback they are; defaults.json is the
  operative default.
- CLI-7 (README): the REPL example no longer pipes output to the
  shell with `|`, an operator the REPL does not have; it uses the
  shell escape and the |> pipe-in instead.
- CLI-8 (README): the find example no longer claims glob pattern
  matching; the search implementation matches substrings.
- CLI-9 (group help): the top-level help no longer lists `join`
  among the things group can do; group join is an unimplemented
  stub whose own help says so.
- CLI-10 (code): feature gating is now consistent - match-audit
  and the sandbox world commands (dev, measure, replay, verify)
  parse in every build and fail at dispatch with "this build has
  no sandbox support", the same pattern `world` already used,
  instead of being gated out of the parser.
- CLI-11 (help): the clap --format help and the REPL help now
  each name the other side's default (tag vs union); the REPL
  help lists the --format flag it accepts.
- CLI-12 (REPL banner): the startup banner now lists the full
  command set the dispatch implements.
- CLI-13: already fixed - the README Project Structure matches
  the split crate tree (rewritten with #13365).
- CLI-14 (put --content help): the --help summary line now
  states the exactly-one-name requirement.

The book chapters that recorded these disagreements are updated
in the same change to mark them resolved and to state the new
gating behaviour where CLI-10 changed it.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 18 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f7180bee-8553-4ec5-8f53-8f074794c73b
Commits

Reviewing files that changed from the base of the PR and between b6efed9 and 679834e.

Files selected for processing: 16

  • pkgs/id/README.md
  • pkgs/id/book/getting-started/installation.md
  • pkgs/id/book/reference/cli-files.md
  • pkgs/id/book/reference/cli-gallery-walk.md
  • pkgs/id/book/reference/cli-groups-identity.md
  • pkgs/id/book/reference/cli-serve.md
  • pkgs/id/book/reference/cli-worlds.md
  • pkgs/id/book/reference/repl.md
  • pkgs/id/crates/id-cli/src/cli/match_audit.rs
  • pkgs/id/crates/id-cli/src/cli/mod.rs
  • pkgs/id/crates/id-cli/src/cli/tests.rs
  • pkgs/id/crates/id-cli/src/cli/world.rs
  • pkgs/id/crates/id-cli/src/commands/serve.rs
  • pkgs/id/crates/id-cli/src/commands/world.rs
  • pkgs/id/crates/id-cli/src/repl/runner.rs
  • pkgs/id/src/main.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit a690a1b into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-oc6-13363 branch November 23, 2026 19:17
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ID book survey disagreements: CLI help / README vs the parser source (CLI-1…CLI-14)

1 participant